package com.bl.student.service.biz.comment;

import com.bl.student.dao.redis.model.UserInfo;
import com.bl.student.service.vo.DelBody;
import com.bl.student.service.vo.DelListBody;
import com.bl.student.service.vo.comment.CommentAddVo;
import com.bl.student.service.vo.comment.CommentListVo;
import org.springframework.data.domain.Pageable;


/**
 * Created by liangweikang on 18/2/2.
 */
public interface CommentService {

    // api 未测试
    void addCommentToB(String uid,CommentAddVo commentAddVo);
    // api
    void addCommentToA(String uid,CommentAddVo commentAddVo);

    // api 未测试
    CommentListVo getCommentByReceive(String id, Pageable pageable);

    Double getCommentScoreByReceive(String id);
    // api 未测试
    CommentListVo getCommentBySend(String id, Pageable pageable);

    CommentListVo getCommentListMulti(String creatorId,String receiverId,String type,String taskId, Pageable pageable);

    void delComment(DelBody body, UserInfo userInfo);

    void del(DelBody commentId);

    void delList(DelListBody idList);
}
